package com.xydtech.ecard.statistics.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 预约记录对象 ecard_busi_reservation_record
 *
 * @author JHON
 * @date 2021-10-09
 */
public class EcardBusiReservationRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 客户名称/企业名称 */
    @Excel(name = "客户名称/企业名称")
    private String cname;

    /** 证件号码/社会信用代码 */
    @Excel(name = "证件号码/社会信用代码")
    private String cardNum;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String telNo;

    /** 产品类型            1-贷款            2-存款            3-理财            4-其他 */
    @Excel(name = "产品类型            1-贷款            2-存款            3-理财            4-其他")
    private String prdType;

    /** 预约产品            对应产品配置表产品编号 */
    @Excel(name = "预约产品            对应产品配置表产品编号")
    private Long resPrdId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:ss")
    private Date resTime;

    /** 状态            0-待受理            1-无意向            2-已办理 */
    @Excel(name = "状态            0-待受理            1-无意向            2-已办理")
    private String sts;

    /** 办理产品 对应产品配置表产品编号 */
    @Excel(name = "办理产品 对应产品配置表产品编号")
    private Long prdId;

    /** 业务金额 */
    @Excel(name = "业务金额")
    private BigDecimal numbers;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String prdUnit;

    /** 办理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    @Excel(name = "办理时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:ss")
    private Date acceptTime;

    /** 耗时(小时) */
    @Excel(name = "耗时(小时)")
    private Long useTimes;

    /** 客户经理 */
    @Excel(name = "客户经理")
    private String userName;

    /** 归属机构 */
    @Excel(name = "归属机构")
    private String deptName;

    /** 推介人 */
    @Excel(name = "推介人")
    private String refUserName;

    /** 联系人 */
    @Excel(name = "联系人")
    private String linkman;

    /** 报告路径 */
    @Excel(name = "报告路径")
    private String reportUrl;
    /** PDF报告 */
    private String pdfReport;
    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCname() {
        return cname;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setTelNo(String telNo) {
        this.telNo = telNo;
    }

    public String getTelNo() {
        return telNo;
    }

    public void setPrdType(String prdType) {
        this.prdType = prdType;
    }

    public String getPrdType() {
        return prdType;
    }

    public void setResPrdId(Long resPrdId) {
        this.resPrdId = resPrdId;
    }

    public Long getResPrdId() {
        return resPrdId;
    }

    public void setResTime(Date resTime) {
        this.resTime = resTime;
    }

    public Date getResTime() {
        return resTime;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public void setPrdId(Long prdId) {
        this.prdId = prdId;
    }

    public Long getPrdId() {
        return prdId;
    }

    public void setNumbers(BigDecimal numbers) {
        this.numbers = numbers;
    }

    public BigDecimal getNumbers() {
        return numbers;
    }

    public void setPrdUnit(String prdUnit) {
        this.prdUnit = prdUnit;
    }

    public String getPrdUnit() {
        return prdUnit;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setUseTimes(Long useTimes) {
        this.useTimes = useTimes;
    }

    public Long getUseTimes() {
        return useTimes;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setRefUserName(String refUserName) {
        this.refUserName = refUserName;
    }

    public String getRefUserName() {
        return refUserName;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getReportUrl() {
        return reportUrl;
    }

    public void setReportUrl(String reportUrl) {
        this.reportUrl = reportUrl;
    }

    public String getPdfReport() {
        return pdfReport;
    }

    public void setPdfReport(String pdfReport) {
        this.pdfReport = pdfReport;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("cname", getCname())
                .append("cardNum", getCardNum())
                .append("telNo", getTelNo())
                .append("prdType", getPrdType())
                .append("resPrdId", getResPrdId())
                .append("resTime", getResTime())
                .append("sts", getSts())
                .append("prdId", getPrdId())
                .append("numbers", getNumbers())
                .append("prdUnit", getPrdUnit())
                .append("acceptTime", getAcceptTime())
                .append("useTimes", getUseTimes())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .append("refUserName", getRefUserName())
                .append("linkman", getLinkman())
                .append("reportUrl", getReportUrl())
                .append("pdfReport", getPdfReport())
                .toString();
    }
}
